﻿using System;
using System.Runtime.Serialization;

namespace XmlStudio.Exceptions {
    /// <summary>
    /// Represents exception when BigXmlReader is in inconsistent state or other wrong state.
    /// </summary>
    [Serializable]
    public class BadBigXmlReaderStateException : Exception {
        /// <summary>
        /// Initializes a new instance of the BadBigXmlReaderStateException.
        /// </summary>
        public BadBigXmlReaderStateException() {

        }

        /// <summary>
        /// Initializes a new instance of the BadBigXmlReaderStateException.
        /// </summary>
        /// <param name="message">Message to use in exception.</param>
        public BadBigXmlReaderStateException(string message)
            : base(message) {

        }

        /// <summary>
        /// Initializes a new instance of the BadBigXmlReaderStateException.
        /// </summary>
        /// <param name="message">Message to use in exception.</param>
        /// <param name="innerException">InnerException to set.</param>
        public BadBigXmlReaderStateException(string message, Exception innerException)
            : base(message, innerException) {

        }

        /// <summary>
        /// Initializes a new instance of the BadBigXmlReaderStateException.
        /// </summary>
        /// <param name="info">Serialization information to set.</param>
        /// <param name="context">StreamingContext to set.</param>
        protected BadBigXmlReaderStateException(SerializationInfo info, StreamingContext context)
            : base(info, context) {

        }
    }
}